package com.dkd.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 策略管理对象 tb_policy
 *
 * @author yuwei
 * @date 2024-09-04
 */
@ApiModel(description = "策略管理对象")
public class Policy extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 策略id */
    @ApiModelProperty(value = "策略ID", example = "1")
    private Long policyId;

    /** 策略名称 */
    @Excel(name = "策略名称")
    @ApiModelProperty(value = "策略名称", example = "优惠策略A")
    private String policyName;

    /** 策略方案 */
    @Excel(name = "策略方案")
    @ApiModelProperty(value = "策略方案（折扣百分比）", example = "10")
    private Long discount;

    public void setPolicyId(Long policyId) {
        this.policyId = policyId;
    }

    public Long getPolicyId() {
        return policyId;
    }

    public void setPolicyName(String policyName) {
        this.policyName = policyName;
    }

    public String getPolicyName() {
        return policyName;
    }

    public void setDiscount(Long discount) {
        this.discount = discount;
    }

    public Long getDiscount() {
        return discount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("policyId", getPolicyId())
                .append("policyName", getPolicyName())
                .append("discount", getDiscount())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}